home *** CD-ROM | disk | FTP | other *** search
Text File | 1999-03-02 | 372 b | 20 lines | [BINA/hDmp] |
- for x
- do
- echo "editing $x: \c"
- if test "$x" = sedscr; then
- echo "not editing sedscript!"
- elif test -s $x; then
- sed -f sedscr $x > /tmp/$x
- if test -s /tmp/$x
- then
- cmp -s $x /tmp/$x && echo "file not changed: \c";\
- cp /tmp/$x $x;echo "done"
- else
- echo "Sed produced an empty file - check sed script."
- fi
- else
- echo "original file is empty."
- fi
- done
- echo "all done"
-